//一个模块一个文件夹
//user.js代表用户模块

import axios from "../utils/request"

//增、删、改、查的请求方法
export const getUserList=q=>{
    return axios({
        url:'api/user/getUserList',
        method:'get',
        params:q  //params ?请求参数传参
    })
}

export const addUser=d=>{
    return axios({
        url:"api/User/addUser",
        method:'post',
        data:d
    })
}

export const Login=d=>{
    return axios({
        url:"api/User/Loggin",
        method:'post',
        data:d
    })
}